from PIL import Image
import pytesseract

im = Image.open('test.jpg')

result = pytesseract.image_to_string(im)

print(result)